package com.light.wanting.emoji.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.light.applet.common.config.CommonQiniuConfig;
import com.light.wanting.emoji.File;

import java.io.IOException;

/**
 * @author: 魏彪
 */
public interface FileService extends IService<File> {

    /**
     * 文件上传, 基于七牛云SDK实现
     *
     * @param filePath
     * @return
     * @throws IOException
     */
    String upload(String filePath) throws IOException;

    String generateLink(String fileName, CommonQiniuConfig bucketInfo);
}
